package com.lovar.gaming.dao.repository;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovar.gaming.dao.domain.BaseForumPost;
import com.lovar.gaming.dao.mapper.BaseForumPostMapper;
import org.springframework.stereotype.Service;

/**
 * @author 穹龙
 * @description 针对表【base_forum_post(帖子表)】的数据库操作Repository实现
 * @createDate 2024-08-06 17:09:55
*/
@Service
public class BaseForumPostRepository extends ServiceImpl<BaseForumPostMapper, BaseForumPost> {

    /**
     * 根据主键获取帖子表详情
     *
     * @param id 主键Id
     * @return BaseForumPost
    */
    public BaseForumPost queryById(String id) {
        return lambdaQuery().eq(BaseForumPost::getId, id).one();
    }

}




